<template>
  <div>
    <p class="home_title">
      <img src="../assets/image/logo.png" alt="" class="home_logo">
      <span>中南大学眼疾病智能筛查与检测系统</span>
    </p>
    <div class="home_banner">
      <div class="home_step">
        <p>中南大学眼疾病智能筛查与检测系统</p>
        <img src="../assets/image/logo.png" alt="">
      </div>
      <div class="home_user_type">
        <p class="home_login">请选择登陆方式</p>
        <p>
          <button @click="goLogin">个人</button>
          <button>医生</button>
          <button>管理员</button>
        </p>
      </div>
    </div>
    <div class="home-footer">
      <p>CopyRight © 2014-2018 北京新皓然软件技术有限责任公司V2.3.1</p>
    </div>
  </div>
</template>

<script>
  export default {
    name: "home",
    methods: {

      goLogin() {
        this.$router.push({path: '/main'});
      }
    }
  }

</script>

<style lang="scss">
  @import "../style/common";

  .home_title {
    margin: $margin-10 $margin-20;
    span {
      @include font(20px, 500);
    }
  }

  .home_logo {
    @include image(60px, 60px);
    vertical-align: middle;
  }

  .home_banner {
    background-color: rgb(0, 0, 0);
    padding: 0 $padding-20;
    height: 450px;
    display: flex;
    justify-content: space-between;
    align-items: start;
  }

  .home_user_type {
    /*display: inline-block;*/
    background-color: rgb(174, 174, 174);
    /*float: right;*/
    padding: $padding-20;
    button {
      width: 120px;
      height: 35px;
      border-radius: 5px;
      margin-left: 10px;
      background-color: rgb(41, 101, 168);
      color: rgb(247, 247, 247);
      @include font(16px, 300);
      border: 1px solid rgb(41, 101, 168);
    }
    .home_login {
      @include font(18px, 500);
      margin: $margin-10 0;
    }
  }

  .home_step {
    /*display: inline-block;*/
    text-align: center;
    height: 100%;
    width: 50%;
    margin-top: 100px;
    /*vertical-align: top;*/
    p {
      color: rgb(247, 247, 247);
      @include font(20px, 500);
    }
  }

  .home-footer {
    p {
      text-align: center;
    }
  }
</style>
